home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Text Editor / Source / TextEditorSemIntf.idl < prev    next >
Encoding:
Text File  |  1995-12-13  |  1.4 KB  |  72 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TextEditorSemIntf.idl
  3.  
  4.     Contains:    TextEditor Apple Event interface
  5.  
  6.     Written by:    Steve Smith
  7.  
  8.     Copyright:    © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11.  
  12. #ifndef _TEXTEDITORSEMINTF_
  13. #define _TEXTEDITORSEMINTF_
  14.  
  15. #ifndef _SEMTINTB_
  16. #include "SemtIntB.idl"
  17. #endif
  18.  
  19. //==============================================================================
  20. // Classes defined in this interface
  21. //==============================================================================
  22.  
  23. interface   TextEditorSemIntf;
  24.  
  25. #ifdef __PRIVATE__
  26. //=====================================================================================
  27. // Implementation Types
  28. //=====================================================================================
  29.  
  30. typedef somToken CTSMTextension;
  31.  
  32. #endif 
  33.  
  34. //==============================================================================
  35. // TextEditorSemIntf
  36. //==============================================================================
  37.  
  38. #ifdef _PLATFORM_MACINTOSH_
  39.  
  40. interface TextEditorSemIntf : ODSemanticInterface
  41. {
  42.     void RegisterTextension(in ODPtr textension);
  43.     
  44. #ifdef __SOMIDL__
  45.     implementation
  46.     {
  47.           functionprefix = TextEditorSemIntf__;
  48.  
  49.         override:
  50.             somInit,
  51.             somUninit,
  52.             CallEventHandler;
  53.         releaseorder:
  54.             RegisterTextension;
  55.  
  56. #ifdef    __PRIVATE__
  57.         passthru C_xih = "
  58.         "class CTSMTextension;"
  59.         "";
  60.         
  61.         CTSMTextension*        fTextension;
  62. #endif
  63.     };
  64. #endif //# __SOMIDL__
  65. };
  66.  
  67.  
  68. #endif //# _PLATFORM_MACINTOSH_
  69.  
  70.  
  71. #endif //# _SEMTINTF_
  72.